
import platform
from glob import glob

try:
    from setuptools import setup, find_packages
except ImportError:
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup, find_packages
    
#from distutils.core import setup

import os
import sys
import glob

console_scripts = []

if platform.system() == "Linux":
    console_scripts.extend(["dexen-cli=dexen.scripts.cli:main", 
                            "dexen-node=dexen.scripts.node:main", 
                            "dexen-server=dexen.scripts.server:start"])

if platform.system() == "Windows":
    console_scripts.append("dexen-cli=dexen.scripts.cli:main")

#root_dir = os.getcwd()

setup(
    name="dexen", 
    version="0.3.0", 
    license="GPL", 
    author="Patrick Janssen, Cihat Basol",
    description="Distributed Execution Environment",
    url="http://code.google.com/p/dexen",
    download_url="http://dexen.googlecode.com/files/dexen-0.3.zip",
    platforms="any",
    author_email="cihatbasol@gmail.com, patrick.ht.janssen@gmail.com",
    packages=find_packages(exclude=["*.tests.*", "tests", "*.tests", "tests.*"]),
    entry_points = {
        'console_scripts': console_scripts
    }
)





